package com.xue566.service;

import com.xue566.entity.BaseEntity;
import com.xue566.entity.SchoolEntity;
import com.xue566.util.ResultBody;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author: Wuzh
 * @Description: 调用school-server
 * @Date Created in 22:08 2020/8/17
 * @return
 */
@FeignClient(value = "crm-school-server", path = "school")
public interface ISchoolService {

    @RequestMapping(value = "/queryList", consumes = "application/json")
    ResultBody<SchoolEntity> queryList (@RequestBody BaseEntity baseEntity);

    @RequestMapping(value = "/save", consumes = "application/json")
    ResultBody<SchoolEntity> saveSchool (@RequestBody BaseEntity baseEntity);

    @RequestMapping(value = "/selectSchool", consumes = "application/json")
    ResultBody<SchoolEntity> selectSchool (@RequestBody BaseEntity baseEntity);

    @RequestMapping(value = "/updateSchool", consumes = "application/json")
    ResultBody<SchoolEntity> updateSchool (@RequestBody SchoolEntity schoolEntity);

    @RequestMapping(value = "/deleteSchool", method = RequestMethod.DELETE, consumes = "application/json")
    ResultBody<SchoolEntity> deleteSchool (@RequestBody SchoolEntity schoolEntity);
}
